package edu.utn.frba.procesamiento.grupo3.audio;

import JSci.maths.wavelet.Signal;

public class NRFilterSignal {

	public static double[] getFilteredSignal(double[] vecSignal,
			double[] vecConvolutionFilter) {

		Signal signal = new Signal(vecSignal);

		return signal.filter(vecConvolutionFilter).getValues();
	}

	public static void main(String[] args) {

		double signal[] = { 0, 1, -2, 3, -4, 5, 6, 7 };
		double filter[] = { 0, 0.2, 0.1, 0.0001, 0.0002, };

		System.out.println(getFilteredSignal(signal, filter));

	}
}
